package struts.ext.util;

import java.util.List;
import java.util.Map;

/**
 * 把一个list转换为Excel的配置文件
 * @author xueshishasha
 *
 */
public class BeanList2ExcelConfig {
	/**
	 * 标题 抬头
	 */
	private String title;
	
	/**
	 * sheet name
	 */
	private String sheetName;
	
	/**
	 * 用来生成excel的数据
	 */
	private List<?> list;
	
	/**
	 * key为属性名
	 * value是Bean2ExcelRowConfig
	 * map是有序的LinkedHashMap
	 */
	private Map<String, Bean2ExcelRowConfig> map;
	
	public BeanList2ExcelConfig(String title,
			String sheetName,
			List<?> list,
			Map<String, Bean2ExcelRowConfig> map) {
		super();
		this.title = title;
		this.sheetName = sheetName;
		this.list = list;
		this.map = map;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Map<String, Bean2ExcelRowConfig> getMap() {
		return map;
	}

	public void setMap(Map<String, Bean2ExcelRowConfig> map) {
		this.map = map;
	}

	public String getSheetName() {
		return sheetName;
	}

	public void setSheetName(String sheetName) {
		this.sheetName = sheetName;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}
	
	
}
